package com.photographysharing.common;

public class ThreadLocalOperation {

    private static ThreadLocal<Information> threadLocal = new ThreadLocal<>();


    public static void setThreadLocal(Information information){
        threadLocal.set(information);
    }
    public static String  getThreadLocalUserId(){
        return threadLocal.get().getUserId();
    }
    public static String getThreadLocaclRole(){return threadLocal.get().getRole();}
    public static String getThreadLocaclEmail(){return threadLocal.get().getEmail();}


}
